package javacvtest.sqladminserver.DTO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
//生成无参构造函数
@NoArgsConstructor
//生成包含所有字段的构造函数
@AllArgsConstructor
public class SqlUrlDTO implements Serializable {
    private String dbDatabase;
    private Integer dbPort;
    private String dbUrl;
    private String dbUsername;
    private String dbPassword;

    public String getDbDataBase(){
        dbDatabase ="jdbc:mysql://" + dbUrl + ":" + dbPort;
        return dbDatabase;
    }

}
